﻿@{
    ViewBag.Title = "Report";
}

<h2>Raport</h2>


@model List<PYS.VoteWorkflow>
    
   @if (Model.Count != 0)
   {
    <div class="tabelConfirmPage">

      @foreach (PYS.VoteWorkflow workFlow in Model)
      {
          string nameMix = "", src = "";
           <div class="rowTabelConfirmPage">
                 <span class="leftColumnConfirmPage">            
                  <span class="textLinkBackToVote"> Coregrafia @workFlow.chTypeID  ( @workFlow.chName )</span>
                 </span>
                 <span class="rightColumnConfirmPage">
                   <span class="textLinkBackToVote"> - @workFlow.mixName</span>
                 </span>   
            </div>
          nameMix = workFlow.mixName;
          if (nameMix != null)
          {
              nameMix = nameMix.ToLower();
              nameMix = nameMix.Replace(" ", "");
              src = "../../Music/" + nameMix + "/" + workFlow.chTypeID + ".mp3";
            
                <div class="rowTabelConfirmPage">
                     <audio controls style="width:120%">
                         <source src=@src type="audio/mpeg"/>
                         <source src=@src type="audio/ogg"/>
                         <source src=@src type="audio/wav"/>
                     </audio>
                </div>      
                <br />
          }
      }
   </div>
   }
   else
   {
      <h3>Nu au fost inregistrate voturi.</h3>
   }
    @Html.ActionLink("Inapoi", "../Home", new { id = "" }, new { @class = "backButton" })